package com.yang.design.create.factory.method;

public class Client {
    public static void main(String[] args) {
        String type = "B";
        AbstractFactory factory = FactoryUtils.getFactory(type);
        AbstractGoods instance = factory.getInstance();
        instance.product();
    }
}
